package com.design_patterns.state;

/**
 * @author: 李德才
 * @description:
 * @create: 2020-09-20 15:33
 **/
public class BluntChangeState extends PowerSourceState {

    public  BluntChangeState (){
        this.flag = !this.flag;
    }
    @Override
    void on() {
        System.err.println("我会生硬的开启电源，直接处理");
    }

    @Override
    void off() {
        System.err.println("我会生硬的关闭电源，直接处理");
    }


}
